Skip to content

clarify variables available inside the .js files in README.md#76

Open
wbern wants to merge 2 commits intonamshi:masterfrom
wbern:master
Open

clarify variables available inside the .js files in README.md#76
wbern wants to merge 2 commits intonamshi:masterfrom
wbern:master

Conversation

@wbern
Copy link

@wbern wbern commented Aug 16, 2019

No description provided.

@wbern wbern changed the title clarify variables available inside the .js files clarify variables available inside the .js files in README.md Aug 16, 2019
Add how to require() with context
@wbern
Copy link
Author

wbern commented Aug 16, 2019

Added a neat hack as well.

@Subterrane
Copy link

I had to use path.resolve instead of path.join in the context hack to get the absolute path. I'm not sure why the relative path didn't work, it appears to be correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants